package org.example.function;

import java.util.function.Function;

public class Java8Function2 {
    public static void main(String[] args) {
        Function<String,Integer> func = x -> x.length();
        Function<Integer,Integer> func2 = x -> x * 2;
        Integer result = func.andThen(func2).apply("mkyong");
        System.err.println(result);
    }
}
